package com.ctgu.server.dao.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "GroupRoleDto", description = "身份组参数")
public class GroupRoleDto {

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "身份组")
    @NotEmpty(message ="参数identify不能为空")
    private String identify;

    @ApiModelProperty(value = "组织表ID")
    @NotNull(message = "参数groupId不能为空")
    private String groupId;

    @ApiModelProperty(value = "用户ID")
    @NotEmpty(message = "用户Id不能为空")
    private String userId;
}
